package com.lwj.controller;

import com.lwj.common.util.R;
import com.lwj.service.FlowerTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/flowerType")
public class FlowerTypeController {
	@Autowired
	private FlowerTypeService flowerTypeService;
	@GetMapping("/list")
	public R list(){

		return R.ok().data("list",flowerTypeService.list());
	}
}
